<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
	<head>
    <base href="<%=basePath%>">
		<meta charset="utf-8">
		<title>组卷系统</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
	</head>
    <body style="padding-top:20px;">
        <div id="content" class="container-fluid" style="padding-bottom:25px">
		<h1 style="text-align: center;"> ${examPaper.name }</h1>
		<hr />
	<div class="card-block">
		<ul style="list-style: none;">
			<c:forEach items="${examPaper.examPaperPartsList }" var="parts" varStatus="status">
			<li class="question">
				<div class="question-title">
					<div style="float:left;"><h3>${parts.partName }</h3></div>
					<div style="clear: both;"></div>
				</div>
				<ol>
					<c:forEach items="${parts.questions }" var="question">
						<li>${question.name }
						<c:if test="${parts.partName eq '选择题' }">
							<div class="question-block ">
								<ol type="A">
									<c:forEach items="${question.optionsList }" var="aa">
									<li>${aa.opt }</li>
									</c:forEach>
								</ol>
							</div>
							</c:if>
						</li>
					</c:forEach>
				</ol>
			</li>
		</c:forEach>
		</ul>
	</div>
</div>
</body>
</html>
    